<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title></title>
  </head>
  <body>
    <div id="app">
      <ul>
        <template v-for="item in items">
          <li>{{ item.msg }}</li>
          <li class="divider"></li>
        </template>
      </ul>
    </div>

    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
      const { createApp, reactive } = Vue;

      createApp({
        setup() {
          const items = reactive([
            {
              name: "张三",
              msg: "不三",
            },
            {
              name: "李四",
              msg: "不四",
            },
          ]);

          return {
            items,
          };
        },
      }).mount("#app");
    </script>
  </body>
</html>
